package com.zsrt.java.day20161223.xww.demo05;

import java.util.Scanner;

import org.junit.Test;

public class Switch {

	@Test
	public void test05() {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入成绩：");
        String score=sc.next();
        sc.close();
        switch (score) {
		case "A":System.out.println("优秀");break;
		case "B":System.out.println("良好");break;
		case "C":System.out.println("一般");break;
		default:System.out.println("有问题");	break;
		}
	}
}
